package database;

import runtime.RuntimeInstance;

public abstract class DatabaseObject implements RuntimeInstance, Comparable<DatabaseObject> {
    protected Object value;

    protected DatabaseObject() {}

    protected abstract void acceptValidator(Validator v);

    public Object getValue() {
        return value;
    }

    @Override
    public abstract int compareTo(DatabaseObject o);

    public abstract void setValue(Object value);
}
